package com.zjm.structural.facade;

public class DVDPlayer {
    // 饿汉式单例模式
    private static final DVDPlayer instance = new DVDPlayer();

    private DVDPlayer() {

    }

    public static DVDPlayer getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("DVD ON");
    }

    public void off() {
        System.out.println("DVD OFF");
    }

    public void play(){
        System.out.println("DVD PLAY");
    }

    public void pause(){
        System.out.println("DVD PAUSE");
    }
}
